﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Views/Shared/SiteTemplate.Master" CodeBehind="AboutEdit.aspx.cs" Inherits="LoveMusic.AboutEdit" %>
<%@ Import Namespace="LoveMusic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<script type="text/javascript" src="../../Content/Javascript/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="../../Content/Javascript/fckeditorapi.js"></script>
<script type="text/javascript">
    window.onload = function()
    {
        var oFCKeditor = new FCKeditor( 'tekstarea' ) ;
        oFCKeditor.BasePath = "/Content/Javascript/fckeditor/" ;
        oFCKeditor.Height = 300;
        oFCKeditor.ReplaceTextarea() ;
    }
    
    function InsertContent()
    {
        var oEditor = FCKeditorAPI.GetInstance('tekstarea') ;
        var sample = document.getElementById("sample").value;
        oEditor.InsertHtml(sample);
    }
    
    function ShowContent()
    {
        var oEditor = FCKeditorAPI.GetInstance('tekstarea') ;
        alert(oEditor.GetHTML());
    }
    
    function ClearContent()
    {
        var oEditor = FCKeditorAPI.GetInstance('tekstarea');
        oEditor.SetHTML("");
    }
</script>

<% var viewData = (CMSData)ViewData.Model; %>     
<%= viewData.Value %>

     
<form action="/Song/SaveAbout/" method="post">
        <%= Html.TextArea("tekstarea",viewData.Value) %>
       
        <input type="submit" value="Save" />
</form>

</asp:Content>
